package org.jeecg.wechat.request;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 客户报修数据接受
 * cheng
 * 2022-09-16
 */
@Data
@Accessors(chain = true)
public class WxCustomRepairRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    /**来源*/
    @ApiModelProperty(value = "来源")
    private String orderSource;
    /**类型*/
    @Dict(dicCode = "skill_code")
    @ApiModelProperty(value = "类型")
    private String skillType;
    /**客户*/
    @ApiModelProperty(value = "客户")
    private String customId;
    /**联系人*/
    @ApiModelProperty(value = "联系人")
    private String linkMan;
    /**联系电话*/
    @ApiModelProperty(value = "联系电话")
    private String linkMobile;
    /**问题描述*/
    @ApiModelProperty(value = "问题描述")
    private String remarks;
    /**照片*/
    @ApiModelProperty(value = "照片")
    private String problemPhoto;
    /**工程师，如果是工程师报修时，需要保存*/
    @ApiModelProperty(value = "工程师")
    private String engineerId;

    @ApiModelProperty(value = "设备集合")
    private List<WxCustomRepairEquip> repairEquipList;

    @Data
    public static  class  WxCustomRepairEquip{
        /**客户*/
        @ApiModelProperty(value = "客户")
        private String customId;
        /**客户设备*/
        @ApiModelProperty(value = "客户设备")
        private String customEquipId;
        /**提报时间*/
        @ApiModelProperty(value = "提报时间")
        private Date submissTime;
        /**类型*/
        @ApiModelProperty(value = "类型")
        private String orderType;
        /**描述*/
        @ApiModelProperty(value = "描述")
        private String remarks;
        /**工程师*/
        @ApiModelProperty(value = "工程师")
        private String engineerId;
        /**设备*/
        @ApiModelProperty(value = "设备")
        private String equipId;
    }

}
